/* 生产进度大屏样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.dashboard-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 顶部标题栏 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

.header-left .update-time {
    color: #00d4ff;
    font-size: 16px;
    font-weight: bold;
}

.header-center .main-title {
    font-size: 32px;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    letter-spacing: 2px;
}

.header-right .btn-refresh, 
.header-right .btn-auto-toggle, 
.header-right .btn-exit-fullscreen {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.header-right .btn-refresh:hover, 
.header-right .btn-auto-toggle:hover, 
.header-right .btn-exit-fullscreen:hover {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.header-right .btn-refresh i, 
.header-right .btn-auto-toggle i, 
.header-right .btn-exit-fullscreen i {
    margin-right: 5px;
}

/* 主要内容区域 */
.dashboard-content {
    padding: 20px 40px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

/* 统计卡片样式 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.stats-card.blue { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.stats-card.green { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); 
}
.stats-card.orange { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}
.stats-card.purple { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
}
.stats-card.red { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); 
}
.stats-card.aqua { 
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); 
    color: #333; 
}

.stats-card h1 {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin: 0;
}

.stats-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stats-card p {
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
}

/* 图表容器样式 */
.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.chart-container:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.chart-container h4 {
    color: #333;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 10px;
}

.chart-container h4 i {
    color: #00d4ff;
    margin-right: 10px;
}

/* 进度环样式 */
.progress-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

/* 网格布局 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.large-chart {
    grid-column: span 2;
}

/* 标签页样式 */
.nav-tabs-custom {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-tabs {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.nav-tabs > li {
    margin-bottom: 0;
}

.nav-tabs > li > a {
    color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 15px 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-tabs > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
}

.tab-content {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 表格样式 */
.table {
    background: transparent;
    color: #333;
}

.table th {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    color: #ffffff;
    border: none;
    font-weight: bold;
    padding: 12px;
}

.table td {
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 12px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(0, 212, 255, 0.05);
}

.table-hover > tbody > tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* 进度条样式 */
.progress {
    height: 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 徽章样式 */
.badge {
    background: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .large-chart {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .header-center .main-title {
        font-size: 20px;
    }
    
    .dashboard-content {
        padding: 15px 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-card h1 {
        font-size: 2em !important;
    }
    
    .stats-card h3 {
        font-size: 1em !important;
    }
    
    .chart-container {
        padding: 15px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    animation: fadeInUp 0.6s ease-out;
}

.chart-container {
    animation: fadeInUp 0.8s ease-out;
}

/* 数据更新动画 */
.data-updated {
    animation: flash 0.5s ease-in-out;
}

@keyframes flash {
    0% { background-color: rgba(0, 212, 255, 0.3); }
    50% { background-color: rgba(0, 212, 255, 0.6); }
    100% { background-color: rgba(0, 212, 255, 0.3); }
}

/* 全屏模式样式 */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(135deg, #0a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 文字颜色调整 */
.text-muted {
    color: #666 !important;
}

.text-center {
    text-align: center;
}

/* 图标样式 */
.fa {
    margin-right: 5px;
}

/* 表格响应式 */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}